import request from '@/utils/request.js'

//教练列表查询
export const coachListService = (params) =>{
    return request.get('/admin/coach/page',{params:params})
} 
//添加课程
export const addCoachService = (coachForm)=>{
    return request.post('/admin/coach',coachForm)
}
//修改课程
export const updateCoachService = (coachForm)=>{
    return request.put('/admin/coach',coachForm)
}
//删除课程
export const deleteCoachService = (id)=>{
    return request.delete('/admin/coach/'+id)
}